<template>
  <a>this is a sample rank item</a>
</template>

<script>
export default {
  props: ["param"],
  data() {
    return {
      u_id: this.param.u_id,
      e_id: this.param.e_id,
      e_name: this.param.e_name,
      e_desc: this.param.e_desc,
      e_pic: this.param.e_pic,
      e_date: this.param.e_date,
      e_count: this.param.e_count,
      e_time: null,
    };
  },
  onLoad: function () {
    var nowDate = new Date();
    nowDate = nowDate.getHours() * 60 + nowDate.getMinutes();
    var setDate = this.e_date.getHours() * 60 + this.e_date.getMinutes();
    this.e_time = setDate - nowDate;
    this.e_time = this.e_time * 60 * 1000;
  },
  methods: {
    countFinish() {
      console.log("count finish");
    },
  },
};
</script>

<style scoped>
</style>